from django.db import models

# Create your models here.
class Books(models.Model):
    b_name=models.CharField(max_length=64)
    b_price=models.FloatField(default=0)
    b_info=models.CharField(max_length=128,default='hello')

class Meta(models.Model):
    id = models.AutoField(primary_key=True)
    oindex = models.CharField(max_length=255,db_comment="原始索引")
    order = models.IntegerField(default=0,db_comment="插入顺序")
    subcluster = models.CharField(max_length=255, db_index=True)
    sample = models.CharField(max_length=255)
    donor = models.CharField(max_length=255)
    age = models.CharField(max_length=255)
    condition = models.CharField(max_length=255)
    region = models.CharField(max_length=255)
    race = models.CharField(max_length=255)
    sex = models.CharField(max_length=10)
    data_name = models.CharField(max_length=255)
    cell_type1 = models.CharField(max_length=255)
    cell_states = models.CharField(max_length=255)  # 添加 cell_states 字段
    UMAP_1 = models.FloatField()
    UMAP_2 = models.FloatField()
